Optimal. Leaf size=77 \[ \frac {(A b-a B) x^3}{3 a b \left (a+b x^2\right )^{3/2}}-\frac {B x}{b^2 \sqrt {a+b x^2}}+\frac {B \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{b^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {463, 294, 223,
212} \begin {gather*} \frac {x^3 (A b-a B)}{3 a b \left (a+b x^2\right )^{3/2}}+\frac {B \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{b^{5/2}}-\frac {B x}{b^2 \sqrt {a+b x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 223
Rule 294
Rule 463
Rubi steps
\begin {align*} \int \frac {x^2 \left (A+B x^2\right )}{\left (a+b x^2\right )^{5/2}} \, dx &=\frac {(A b-a B) x^3}{3 a b \left (a+b x^2\right )^{3/2}}+\frac {B \int \frac {x^2}{\left (a+b x^2\right )^{3/2}} \, dx}{b}\\ &=\frac {(A b-a B) x^3}{3 a b \left (a+b x^2\right )^{3/2}}-\frac {B x}{b^2 \sqrt {a+b x^2}}+\frac {B \int \frac {1}{\sqrt {a+b x^2}} \, dx}{b^2}\\ &=\frac {(A b-a B) x^3}{3 a b \left (a+b x^2\right )^{3/2}}-\frac {B x}{b^2 \sqrt {a+b x^2}}+\frac {B \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )}{b^2}\\ &=\frac {(A b-a B) x^3}{3 a b \left (a+b x^2\right )^{3/2}}-\frac {B x}{b^2 \sqrt {a+b x^2}}+\frac {B \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{b^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 75, normalized size = 0.97 \begin {gather*} \frac {-3 a^2 B x+A b^2 x^3-4 a b B x^3}{3 a b^2 \left (a+b x^2\right )^{3/2}}-\frac {B \log \left (-\sqrt {b} x+\sqrt {a+b x^2}\right )}{b^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 117, normalized size = 1.52
method | result | size |
default | \(B \left (-\frac {x^{3}}{3 b \left (b \,x^{2}+a \right )^{\frac {3}{2}}}+\frac {-\frac {x}{b \sqrt {b \,x^{2}+a}}+\frac {\ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{b^{\frac {3}{2}}}}{b}\right )+A \left (-\frac {x}{2 b \left (b \,x^{2}+a \right )^{\frac {3}{2}}}+\frac {a \left (\frac {x}{3 a \left (b \,x^{2}+a \right )^{\frac {3}{2}}}+\frac {2 x}{3 a^{2} \sqrt {b \,x^{2}+a}}\right )}{2 b}\right )\) | \(117\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 103, normalized size = 1.34 \begin {gather*} -\frac {1}{3} \, B x {\left (\frac {3 \, x^{2}}{{\left (b x^{2} + a\right )}^{\frac {3}{2}} b} + \frac {2 \, a}{{\left (b x^{2} + a\right )}^{\frac {3}{2}} b^{2}}\right )} - \frac {B x}{3 \, \sqrt {b x^{2} + a} b^{2}} - \frac {A x}{3 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} b} + \frac {A x}{3 \, \sqrt {b x^{2} + a} a b} + \frac {B \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right )}{b^{\frac {5}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.96, size = 245, normalized size = 3.18 \begin {gather*} \left [\frac {3 \, {\left (B a b^{2} x^{4} + 2 \, B a^{2} b x^{2} + B a^{3}\right )} \sqrt {b} \log \left (-2 \, b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) - 2 \, {\left (3 \, B a^{2} b x + {\left (4 \, B a b^{2} - A b^{3}\right )} x^{3}\right )} \sqrt {b x^{2} + a}}{6 \, {\left (a b^{5} x^{4} + 2 \, a^{2} b^{4} x^{2} + a^{3} b^{3}\right )}}, -\frac {3 \, {\left (B a b^{2} x^{4} + 2 \, B a^{2} b x^{2} + B a^{3}\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) + {\left (3 \, B a^{2} b x + {\left (4 \, B a b^{2} - A b^{3}\right )} x^{3}\right )} \sqrt {b x^{2} + a}}{3 \, {\left (a b^{5} x^{4} + 2 \, a^{2} b^{4} x^{2} + a^{3} b^{3}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 352 vs.
\(2 (68) = 136\).
time = 5.75, size = 352, normalized size = 4.57 \begin {gather*} \frac {A x^{3}}{3 a^{\frac {5}{2}} \sqrt {1 + \frac {b x^{2}}{a}} + 3 a^{\frac {3}{2}} b x^{2} \sqrt {1 + \frac {b x^{2}}{a}}} + B \left (\frac {3 a^{\frac {39}{2}} b^{11} \sqrt {1 + \frac {b x^{2}}{a}} \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )}}{3 a^{\frac {39}{2}} b^{\frac {27}{2}} \sqrt {1 + \frac {b x^{2}}{a}} + 3 a^{\frac {37}{2}} b^{\frac {29}{2}} x^{2} \sqrt {1 + \frac {b x^{2}}{a}}} + \frac {3 a^{\frac {37}{2}} b^{12} x^{2} \sqrt {1 + \frac {b x^{2}}{a}} \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )}}{3 a^{\frac {39}{2}} b^{\frac {27}{2}} \sqrt {1 + \frac {b x^{2}}{a}} + 3 a^{\frac {37}{2}} b^{\frac {29}{2}} x^{2} \sqrt {1 + \frac {b x^{2}}{a}}} - \frac {3 a^{19} b^{\frac {23}{2}} x}{3 a^{\frac {39}{2}} b^{\frac {27}{2}} \sqrt {1 + \frac {b x^{2}}{a}} + 3 a^{\frac {37}{2}} b^{\frac {29}{2}} x^{2} \sqrt {1 + \frac {b x^{2}}{a}}} - \frac {4 a^{18} b^{\frac {25}{2}} x^{3}}{3 a^{\frac {39}{2}} b^{\frac {27}{2}} \sqrt {1 + \frac {b x^{2}}{a}} + 3 a^{\frac {37}{2}} b^{\frac {29}{2}} x^{2} \sqrt {1 + \frac {b x^{2}}{a}}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.39, size = 69, normalized size = 0.90 \begin {gather*} -\frac {x {\left (\frac {3 \, B a}{b^{2}} + \frac {{\left (4 \, B a b^{2} - A b^{3}\right )} x^{2}}{a b^{3}}\right )}}{3 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}}} - \frac {B \log \left ({\left | -\sqrt {b} x + \sqrt {b x^{2} + a} \right |}\right )}{b^{\frac {5}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2\,\left (B\,x^2+A\right )}{{\left (b\,x^2+a\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________